package br.com.k19.sessioneans;

import br.com.k19.entidades.Cliente;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import javax.persistence.TypedQuery;


@Stateless
public class ClienteBean{
	
	@PersistenceContext(unitName="persisteciaWebPU")
	private EntityManager manager;


	public Cliente adiciona(Cliente cliente){
		manager.persist(cliente);
		return cliente;
	}
        
        public void remove(Cliente cliente){
                manager.remove(cliente);
        }

}
